package com.wwmz.open.closed.impl;

/**
 * Created by wumz on 2020/9/13 11:27
 */
public class JavaProduct implements IProduct {
    private Integer id;
    private String name;
    private Double price;

    public JavaProduct(Integer id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
